<!-- 
    apply this后面只接收一个数组,他会把数组变为很多参数 (不接受数组以外的参数)
 -->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    let obj = {
        name: 'Nico',
        func(arg,a,b,c,d){
            console.log(this,arg,a,b,c,d)
        }
    };
    // obj.func.bind(this,['Jingwen','nico'])();
    // obj.func.apply(this,[1,23,4]) // apply会把数组变为一个一个的参数
    // obj.func.call(this,[1,3,34],[3242]) // call 传数组就是数组;
    // obj.func.apply(this,[1,2,3],[2,3,4]);
    obj.func.apply(this,[2])
</script>
</html>